package com.comunity_cloud.client.model.communication.packet;


public class PeerPacket<T extends PeerPacketHeader> {

	public PeerPacket() {
	}
	
	public PeerPacket(T header, byte[] payload) {
		this.header = header;
		this.payload = payload;
	}

	private long clientId;
	
	private T header;
	
	private byte[] payload;

	public T getHeader() {
		return header;
	}

	public void setHeader(T header) {
		this.header = header;
	}

	public byte[] getPayload() {
		return payload;
	}

	public void setPayload(byte[] payload) {
		this.payload = payload;
	}
	
	public long getClientId() {
		return clientId;
	}
	
	public void setClientId(long clientId) {
		this.clientId = clientId;
	}
	
}
